﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Pavilion
{
    public static class Extensions
    {
        public static Vector2 CenterVector(this Rectangle thisRect)
        {
            return new Vector2(thisRect.Center.X, thisRect.Center.Y);
        }
        //public static float PenetraionDepthX(this Rectangle thisRect, Rectangle rectangle)
        //{
        //    var xWidth = Math.Abs((double)thisRect.Width / 2.0);
        //    var dx = pos.X - tx;
        //}

        //public static float PenetraionDepthY(this Rectangle thisRect, Rectangle rectangle)
        //{
        //    return 0;
        //}

        //public static Vector2 PenetraionDepth(this Rectangle thisRect, Rectangle rectangle)
        //{
        //    return new Vector2(thisRect.PenetraionDepthX(rectangle), thisRect.PenetraionDepthY(rectangle));
        //}
    }
}
